package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProductMallMapper;
import com.hcb.micro.dto.ProductMall;
import com.hcb.micro.service.IProductMallService;

@Service("ProductMallService")
public class ProductMallServiceImpl implements IProductMallService {

	@Autowired
	ProductMallMapper productMallMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return productMallMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductMall record) {
		return productMallMapper.insert(record);
	}

	@Override
	public int insertSelective(ProductMall record) {
		return productMallMapper.insertSelective(record);
	}

	@Override
	public ProductMall selectByPrimaryKey(Integer id) {
		return productMallMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductMall record) {
		return productMallMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKey(ProductMall record) {
		return productMallMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<ProductMall> selectByPara(Map<String, Object> para) {
		return productMallMapper.selectByPara(para);
	}

}
